package la.iok.hzsvn.lewin.movie.entity;

import java.util.Date;

public class AppPackage {
    private Long id;
    /**
     * 应用名称
     */
    private String appName;
    /**
     * 程序包的类别,android,windows,ios或者其他
     */
    private String packageType;
    /**
     * 产品分类
     */
    private String productType;
    /**
     * 版本名称
     */
    private String versionName;
    /**
     * 版本值,与安卓端versionCode一致
     */
    private Integer versionCode;
    /**
     * 是否最新版本，值为1表示为最新版本,其他值都不是最新版本。{@link AppPackage#appName appName}、{@link AppPackage#packageType packageType}
     * 和{@link AppPackage#productType productType}分别都相同的记录中,存在一个最新版本
     */
    private Integer latest;
    /**
     * 上传时间
     */
    private Date uploadTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public Integer getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(Integer versionCode) {
        this.versionCode = versionCode;
    }

    public Integer getLatest() {
        return latest;
    }

    public void setLatest(Integer latest) {
        this.latest = latest;
    }

    public boolean latest(){
        return 1 == latest;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }
}
